use actix_web::{Error, fs::NamedFile, HttpRequest, Result};

pub fn index(_req: &HttpRequest) -> Result<NamedFile> {
    println!("{}", "index");
    Ok(NamedFile::open("public/dist/index1.html")?)
}

pub fn path(_req: &HttpRequest) -> Result<NamedFile> {
    println!("{}", "path");
    Ok(NamedFile::open("public/dist/index.html")?)
}